package com.yusheng.tr.common.core.openfeign.base;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName jiang_jun_qin
 * @date 2023/4/11 12:56
 * @Version 1.0
 */

@FeignClient(value = "school-system",contextId = "sysConfigFeign")
public interface ISysConfigFeignService {

    @GetMapping("/inner/captcha/enabled")
    boolean selectCaptchaEnabled();

    @GetMapping(value = "/inner//select/config/by/key",consumes= MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String selectConfigByKey(@RequestParam("s") String s);
}
